package org.yeauty.pojo;

import io.netty.handler.codec.http.HttpHeaders;

import java.io.IOException;

public interface WebsocketHandler {
    default void onOpen(Session session, HttpHeaders headers, ParameterMap parameterMap) throws IOException {
    }

    default void onClose(Session session) throws IOException {
    }

    default void onError(Session session, Throwable e) {
    }

    default void onMessage(Session session, String message) {
    }

    default void onBinary(Session session, byte[] bytes) {
    }

    default void onEvent(Session session, Object evt) {
    }

}
